﻿// copyright (c) 2025 author:fio66<fio66@foxmail.com>. All rights reserved.
// date: 2025-08-21 16:14:12

#ifndef _FFMPEG_WRAPPER_SRC_UTILS_H_
#define _FFMPEG_WRAPPER_SRC_UTILS_H_

extern "C" {
#include <libavutil/avutil.h>
#include <libavutil/timestamp.h>
}

#define AV_SUCCESS(x) (0 == x)

namespace fio66 {
namespace utils {

char* AVTs2TimeStr(int64_t ts, const AVRational* tb);

char* AVErr2Str(const int err_num);

}  // namespace utils
}  // namespace fio66

#endif  // _FFMPEG_WRAPPER_SRC_UTILS_H_
